package com.zzgele.qmzb.api.web;

import com.alibaba.boot.dubbo.annotation.DubboConsumer;
import com.zzgele.qmzb.api.core.Result;
import com.zzgele.qmzb.api.core.ResultGenerator;
import com.zzgele.qmzb.api.service.UserVService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * Created by cyoung on 2017/10/25.
 */
@RestController
@RequestMapping("/userv")
public class UserVController {
    private final Logger logger = LoggerFactory.getLogger(UserVController.class);
    @DubboConsumer
    private UserVService userVService;

    /**
     * uid对应的加v认证信息
     * @param login_uid
     * @return
     */
    @RequestMapping("/getUserV")
    public Result getUserV(Long login_uid) {

        HashMap hashMap = userVService.getMyInfo(login_uid);

        return ResultGenerator.genSuccessResult(hashMap);
    }
}
